<style>
    #obj-update {
        padding: 20px 25px 25px 0;
    }

    #obj-update .layui-treeSelect .ztree li a, .ztree li span {
        margin: 0 0 2px 3px !important;
    }
</style>
<div class="layui-fluid" id="obj-update">
    <form class="layui-form" action="" lay-filter="obj-update-form">
                        <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">记录id：</label>
                    <div class="layui-input-block">
                        <input type="text" name="id" data-th-value="${obj.id}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">事项名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">实施主体：</label>
                    <div class="layui-input-block">
                        <input type="text" name="sszt" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">是否支持自助终端办理 ：</label>
                    <div class="layui-input-block">
                        <input type="text" name="sfzczzzdbl" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">是否支持预约办理 ：</label>
                    <div class="layui-input-block">
                        <input type="text" name="sfzcyybl" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">事项类型：</label>
                    <div class="layui-input-block">
                        <input type="text" name="sxlx" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">办件类型：</label>
                    <div class="layui-input-block">
                        <input type="text" name="bjlx" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">通办范围：</label>
                    <div class="layui-input-block">
                        <input type="text" name="tbfw" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">网上办理深度：</label>
                    <div class="layui-input-block">
                        <input type="text" name="wsblsd" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">办公时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="bgsj" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">申请条件：</label>
                    <div class="layui-input-block">
                        <input type="text" name="sqtj" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">行使内容：</label>
                    <div class="layui-input-block">
                        <input type="text" name="xsnr" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">办理地点：</label>
                    <div class="layui-input-block">
                        <input type="text" name="bldd" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">办理流程：</label>
                    <div class="layui-input-block">
                        <input type="text" name="bllc" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">监督投诉：</label>
                    <div class="layui-input-block">
                        <input type="text" name="jdts" autocomplete="off" class="layui-input">
                    </div>
                </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否一网通办：</label>
            <div class="layui-input-block">
                <input type="radio" name="isYwtb" value="1" title="是" checked="">
                <input type="radio" name="isYwtb" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否人才服务：</label>
            <div class="layui-input-block">
                <input type="radio" name="isRcfw" value="1" title="是" checked="">
                <input type="radio" name="isRcfw" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否公共服务：</label>
            <div class="layui-input-block">
                <input type="radio" name="isGgfw" value="1" title="是" checked="">
                <input type="radio" name="isGgfw" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否亲情在线：</label>
            <div class="layui-input-block">
                <input type="radio" name="isQqzx" value="1" title="是" checked="">
                <input type="radio" name="isQqzx" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否企业服务：</label>
            <div class="layui-input-block">
                <input type="radio" name="isQyfw" value="1" title="是" checked="">
                <input type="radio" name="isQyfw" value="0" title="否">
            </div>
        </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="obj-update-form-submit" id="submit"></button>
            </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['febs', 'form', 'formSelects', 'validate', 'treeSelect'], function () {
        var $ = layui.$,
            febs = layui.febs,
            layer = layui.layer,
            form = layui.form,
            obj = [[${obj}]],
            $view = $('#obj-update'),
            validate = layui.validate;

        form.verify(validate);
        form.render();

        initobjValue();


        function initobjValue() {
            form.val("obj-update-form", {
                "id": obj.id,
                "name": obj.name,
                "sszt": obj.sszt,
                "sfzczzzdbl": obj.sfzczzzdbl,
                "sfzcyybl": obj.sfzcyybl,
                "sxlx": obj.sxlx,
                "bjlx": obj.bjlx,
                "tbfw": obj.tbfw,
                "wsblsd": obj.wsblsd,
                "bgsj": obj.bgsj,
                "sqtj": obj.sqtj,
                "xsnr": obj.xsnr,
                "bldd": obj.bldd,
                "bllc": obj.bllc,
                "jdts": obj.jdts,
                "isYwtb": obj.isYwtb,
                "isRcfw": obj.isRcfw,
                "isGgfw": obj.isGgfw,
                "isQqzx": obj.isQqzx,
                "isQyfw": obj.isQyfw,
            });
        }

        form.on('submit(obj-update-form-submit)', function (data) {
            if (febs.nativeEqual(data.field, obj)) {
                febs.alert.warn('数据未作任何修改！');
                return false;
            }
            febs.post(ctx + 'menuItemPersonal/update', data.field, function () {
                layer.closeAll();
                febs.alert.success('数据修改成功');
                $('#febs-obj').find('#query').click();
            });
            return false;
        });
    });
</script>